package com.ruoyi.project.mtool.util;

import org.junit.Test;

import java.io.File;
import java.io.FileInputStream;
import java.util.List;

/**
 * 从excel导入渠道信息
 *
 * @author dwei
 */
public class ExportChannel {

    @Test
    public void test() throws Exception {
        FileInputStream fis = new FileInputStream(new File("/Users/dwei/Workspace/IdeaProjects/后台管理系统/RuoYi-Vue/ruoyi/doc/小组件 - 渠道定义.xlsx"));
        ExtExcelUtil<ExtCustomer> util = new ExtExcelUtil<>(ExtCustomer.class);
        List<ExtCustomer> userList = util.importExcel(fis);

        System.out.println(userList.size());
    }
}
